package com.hrpmar.pojo;


import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 药品库存表
 */
public class Drugstock extends BasePojo {

  private Integer stoId;                  //库存序号
  private String stoNum;                  //库存编号
  private String drugNum;                 //药品表编号
  private Integer stoPcs;                 //库存数量
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date stoPutindate;              //入库日期

  private String stoLotnum;               //批号
  private String proNum;                 //公司编号
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date stoMfg;                    //生产日期
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date stoValiddate;            //有效日期
  private Float stoPrimecost;           //进价
  private Float stoPresell;             //预售价


  /**
   * 创建人，创建时间，修改人，修改时间 继承自父类
   * @return
   */
  private Druginfo druginfo;            //药品信息表

  private Provider provider;            //供应商表

  public String getProNum() {
    return proNum;
  }

  public void setProNum(String proNum) {
    this.proNum = proNum;
  }

  public Provider getProvider() {
    return provider;
  }

  public void setProvider(Provider provider) {
    this.provider = provider;
  }

  public Integer getStoId() {
    return stoId;
  }

  public void setStoId(Integer stoId) {
    this.stoId = stoId;
  }

  public String getStoNum() {
    return stoNum;
  }

  public void setStoNum(String stoNum) {
    this.stoNum = stoNum;
  }

  public String getDrugNum() {
    return drugNum;
  }

  public void setDrugNum(String drugNum) {
    this.drugNum = drugNum;
  }

  public Integer getStoPcs() {
    return stoPcs;
  }

  public void setStoPcs(Integer stoPcs) {
    this.stoPcs = stoPcs;
  }

  public Date getStoPutindate() {
    return stoPutindate;
  }

  public void setStoPutindate(Date stoPutindate) {
    this.stoPutindate = stoPutindate;
  }

  public String getStoLotnum() {
    return stoLotnum;
  }

  public void setStoLotnum(String stoLotnum) {
    this.stoLotnum = stoLotnum;
  }

  public Date getStoMfg() {
    return stoMfg;
  }

  public void setStoMfg(Date stoMfg) {
    this.stoMfg = stoMfg;
  }

  public Date getStoValiddate() {
    return stoValiddate;
  }

  public void setStoValiddate(Date stoValiddate) {
    this.stoValiddate = stoValiddate;
  }

  public Float getStoPrimecost() {
    return stoPrimecost;
  }

  public void setStoPrimecost(Float stoPrimecost) {
    this.stoPrimecost = stoPrimecost;
  }

  public Float getStoPresell() {
    return stoPresell;
  }

  public void setStoPresell(Float stoPresell) {
    this.stoPresell = stoPresell;
  }

  public Druginfo getDruginfo() {
    return druginfo;
  }

  public void setDruginfo(Druginfo druginfo) {
    this.druginfo = druginfo;
  }

  @Override
  public String toString() {
    return "Drugstock{" +
            "stoId=" + stoId +
            ", stoNum='" + stoNum + '\'' +
            ", drugNum='" + drugNum + '\'' +
            ", stoPcs=" + stoPcs +
            ", stoPutindate=" + stoPutindate +
            ", stoLotnum='" + stoLotnum + '\'' +
            ", stoMfg=" + stoMfg +
            ", stoValiddate=" + stoValiddate +
            ", stoPrimecost=" + stoPrimecost +
            ", stoPresell=" + stoPresell +
            ", druginfo=" + druginfo +
            '}';
  }
}
